from django.shortcuts import render, HttpResponse
from django.template.response import TemplateResponse

# Create your views here.
def index(request):
    print('index')
    ret =  HttpResponse('ok')
    # print(id(ret))

    # int('aaaa')

    # def xxx():
    #     print(11111)
    #     return HttpResponse('xxxxx')
    #
    # ret.render = xxx

    # return  ret

    return TemplateResponse(request,'index.html',{'user':'alex'})

